import Layout from '@/layout';
// // 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require('@/utils/util.import');
const meta = { auth: true, menuId: '/task' };
export default {
  path: '/task',
  name:'task',
  meta: {
    ...meta,
    icon: 'setting',
    title: '任务管理',
  },
  component: Layout,
  children: ((basePath) => [
    {
      // /task/taskManagement
      path: `${basePath}/taskManagement`,
      component: _import('task/taskManagement'),
      name:'taskManagement',
      meta: {
        ...meta,
        title: '任务管理',
      },
    },
    //用户管理-新增 start
    {
      path: `${basePath}/taskCreation`,
      component: _import('task/taskManagement/taskCreation'),
      name:'taskCreation',
      meta: {
        ...meta,
        title: '任务创建',
      },
    },
    {
      path: `${basePath}/accountQuery`,
      component: _import('task/accountQuery'),
      name:'accountQuery',
      meta: {
        ...meta,
        title: '管户信息查询',
      },
    },
    {
      path: `${basePath}/advancedQuery`,
      component: _import('task/advancedQuery'),
      name:'advancedQuery',
      meta: {
        ...meta,
        title: '高级信息查询',
      },
    },
    {
      path: `${basePath}/gsAttributionHistory`,
      component: _import('task/accountQuery/gsAttributionHistory'),
      name:'gsAttributionHistory',
      meta: {
        ...meta,
        title: '归属历史查询',
      },
    },
  ])('/task'),
};
